import axios from "axios";

const instance = axios.create({
  baseURL: "http://106.75.241.100:3012/",
  timeout: 50000,
});

instance.interceptors.request.use(
  (config) => {
    return config;
  },
  (err) => {
    return Promise.reject(err);
  }
);

instance.interceptors.response.use(
  (resp) => {
    return resp.data;
  },
  (err) => {
    return Promise.reject(err);
  }
);

export default instance;
